#!/bin/bash

cd /home/mysql/backup/

gzip -d `date +'%Y_%m_%d'`comment3306.sql.gz

/usr/local/mysql/bin/mysql -u root --port=3306 --socket=/data/commentdb_3306/mysql.sock  comment3306 < /home/mysql/backup/`date +'%Y_%m_%d'`comment3306.sql

echo "recever mysql database finished ! "
